<#macro list_elements directory>
		<#if directory.getRelativeDepth()!="">
			<li class="parent dir"><a href="../index.html">up</a></li>
		</#if>
		<#if directory.getName()!="">
			<li class="current dir"><a href="index.html">${directory.getName()}</a></li>
		</#if>
		<#list directory.getDirectories() as dir>
			<li class="dir"><a href="${dir.getUrl(directory.getRelativePath(), "__directory__index.html.template")}">${dir.getName()}</a></li>
		</#list>
</#macro>

<#macro list directory>
		<ul class="dirs">
		<@list_elements directory=directory/>
		</ul>
</#macro>